package main

import "fmt"

func main() {
	const PI float32 = 3.1415926
	fmt.Println(PI)

	// 枚举类型
	const (
		Monday = 1
		Tuesday = 2
		Wednesday = 3
		Thursday = 4
		Friday = 5
		Saturday = 6
		Sunday = 7
	)
	fmt.Println(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)

	// iota的用法
	const (
		a = iota // 0
		b // 1
		c // 2
		d = "apple" // apple
		e = iota // 4
		f,g = iota, iota // 5, 5
		h = iota // 6
		i // 7
		j // 8
		
	)
	fmt.Println(a, b, c, d, e, f, g, h, i, j)
}